package com.sun.pojo.entity;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author SunRui
 * @description 用户类
 * @date 2024/10/5 15:55
 */
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = -1072144941950290088L;
    private int id;// 用户Id
    private String name; // 用户名称
    private int gender;//用户性别 1：女 2：男

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }
}
